/*
 * Lenovo Group
 * Copyright (c) 2015-2016 All Rights Reserved.
 * Project Name: lmrp-android app
 * Create Time: 16-2-16 下午6:37
 */

package com.lenovo.mso2o.entity;

import java.util.Date;
import java.util.Map;

public class ProjCust {
    private Integer customerId;

    private String customerName;

    private String gender;

    private String customerCode;

    private String mobile;

    private String email;

    private String qq;

    private String weixin;

    private String phone;

    private Integer projectId;

    private Short isDelete;

    private Date createTime;

    private Integer createUser;

    private Date updateTime;

    private Integer updateUser;

    private Integer province;

    private Integer city;

    private Integer county;

    private String detailedaddress;

    private String description;

    private String remarks;

	private String projectName;
    
    private String proectCustName;
    
    private SysDict genderString;
    
	private Project project;
	
	private SysDistrict provinceDistrict;

    private SysDistrict cityDistrict;

    private SysDistrict countyDistrict;

    public ProjCust(){    	
    }
    
    public ProjCust(Map<String,Object> map){
    	if(null==map)
    		return;
    	if(map.containsKey("custName"))
    		setCustomerName((String) map.get("custName"));
    	if(map.containsKey("gender"))
    		setGender((String) map.get("gender"));
    	if(map.containsKey("custCode"))
    		setCustomerCode((String) map.get("custCode"));
    	if(map.containsKey("phone"))
    		setMobile((String) map.get("phone"));
    	if(map.containsKey("email"))
    		setEmail((String) map.get("email"));
    	if(map.containsKey("qq"))
    		setQq((String) map.get("qq"));
    	if(map.containsKey("weixin"))
    		setWeixin((String) map.get("weixin"));
    	if(map.containsKey("phone"))
    		setPhone((String) map.get("phone"));
    	if(map.containsKey("projectId"))
    		setProjectId(Integer.parseInt((String) map.get("projectId")));
    	if(map.containsKey("province"))
    		setProjectId(Integer.parseInt((String) map.get("province")));
    	if(map.containsKey("city"))
    		setProjectId(Integer.parseInt((String) map.get("city")));
    	if(map.containsKey("county"))
    		setProjectId(Integer.parseInt((String) map.get("county")));
    	
    }
    
	
    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName == null ? null : customerName.trim();
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender == null ? null : gender.trim();
    }

    public String getCustomerCode() {
        return customerCode;
    }

    public void setCustomerCode(String customerCode) {
        this.customerCode = customerCode == null ? null : customerCode.trim();
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq == null ? null : qq.trim();
    }

    public String getWeixin() {
        return weixin;
    }

    public void setWeixin(String weixin) {
        this.weixin = weixin == null ? null : weixin.trim();
    }



    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    public Short getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Short isDelete) {
        this.isDelete = isDelete;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Integer updateUser) {
        this.updateUser = updateUser;
    }

    public Integer getProvince() {
        return province;
    }

    public void setProvince(Integer province) {
        this.province = province;
    }

    public Integer getCity() {
        return city;
    }

    public void setCity(Integer city) {
        this.city = city;
    }

    public Integer getcounty() {
        return county;
    }

    public void setcounty(Integer county) {
        this.county = county;
    }

    public String getDetailedaddress() {
        return detailedaddress;
    }

    public void setDetailedaddress(String detailedaddress) {
        this.detailedaddress = detailedaddress == null ? null : detailedaddress.trim();
    }


    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public String getProectCustName() {
		return proectCustName;
	}

	public void setProectCustName(String proectCustName) {
		this.proectCustName = proectCustName;
	}

	public SysDict getGenderString() {
		return genderString;
	}

	public void setGenderString(SysDict genderString) {
		this.genderString = genderString;
	}

	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public SysDistrict getProvinceDistrict() {
		return provinceDistrict;
	}

	public void setProvinceDistrict(SysDistrict provinceDistrict) {
		this.provinceDistrict = provinceDistrict;
	}

	public SysDistrict getCityDistrict() {
		return cityDistrict;
	}

	public void setCityDistrict(SysDistrict cityDistrict) {
		this.cityDistrict = cityDistrict;
	}

	public SysDistrict getCountyDistrict() {
		return countyDistrict;
	}

	public void setCountyDistrict(SysDistrict countyDistrict) {
		this.countyDistrict = countyDistrict;
	}
}